package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.marktotop.entity.business.Health;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface HealthMapper extends BaseMapper<Health> {

    /**
     * 判断今天是否已健康上报
     *
     * @param id
     * @return
     */
    List<Health> isReport(@Param("id") Long id);

    /**
     * 分页查询上报人健康记录
     *
     * @param page
     * @param id
     * @return
     */
    IPage<Health> getHistoryByPage(Page<Health> page,@Param("id") Long id);
}
